package tk.mybatis.springboot.common;

public enum FinishActionEnum {

    STOP(0),
    WAIT(1);

    private final int value;

    FinishActionEnum(int value) {
        this.value = value;
    }

    public int getValue() {
        return value;
    }

    // 根据值获取对应的枚举类型（可选）
    public static FinishActionEnum fromValue(int value) {
        for (FinishActionEnum action : FinishActionEnum.values()) {
            if (action.getValue() == value) {
                return action;
            }
        }
        throw new IllegalArgumentException("Invalid value: " + value);
    }

}
